home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 128 12
/
q12.d81
/
t.problem report
< prev
next >
Wrap
Text File
|
2022-08-28
|
3KB
|
65 lines
PROBLEM REPORT: WINDOWPRINT
There was a bug in the WINDOWPRINT ML files published on LOADSTAR 128
#11 in the ZERO PAGE section. The routines, which allow a program to easily
send a defined rectangle of a hi-res screen to the printer, handled the "end
row" parameter incorrectly. The program that used the routine, NAMYSTICS,
worked fine because I fudged the "end row" parameter to make it work. I
thought the problem was the way the C-128 handled a split screen, but the
bug was in the WP128.1300 file.
Scott Resh, the programmer, fixed the bug and I've decided to republish
the three versions of this very handy routine on this issue. The following
is the relevant text from the original article that describes how to use the
routine in your program.
WINDOWPRINT is easy to use in your BASIC programs. Just load it into
place with this command near the beginning of your program.
BLOAD"WP128.1300",B0,P4864
There are three versions of WINDOWPRINT on this issue in case the version at
$1300 (4864) conflicts with some other routines you may be using. I
recommend you make a variable equal to the starting address of the routine
you're using. The other versions are at $0C00 (3072) and $1A00 (6656).
WP = 4864
To set the parameters for the "window" POKE the following locations:
WP + 3 - Printer device number (default is 4)
WP + 4 - Printer secondary address (default is 0 for uppercase graphics;
make it 7 for lowercase)
WP + 5 - Line feed flag (default is 0 for NO LINE FEEDS; make it 1 if your
printer requires a line feed)
WP + 6 - Starting column number, 0-39, (default is 0)
WP + 7 - Starting row number, 0-24, (default is 0)
WP + 8 - Ending column number, 0-39 (default is 39)
WP + 9 - Ending row number, 0-24 (default is 24) NOTE:This is the
parameter that didn't work right in the previous version.
WP + 10 - High byte of screen address (default is 32)
As you can see, the defaults will print the whole screen. The screen
address ($2000) is the normal hi-res area set when you do a GRAPHIC1 or
GRAPHIC2 command.
This routine is an upgrade of the routine used in Barbara Schulak's
LABEL DESIGNER from LOADSTAR 128 #4. It works with any printer or interface
that exactly emulates the Commodore 1525 format. IT DOES NOT WORK WITH
JIFFYDOS INSTALLED UNLESS YOU SWITCH IT OFF BEFORE WINDOWPRINT IS CALLED.
If it doesn't work with your setup, but you're sure you're set up for
1525-emulation mode, you might try flipping some DIP-switches. It's beyond
our capabilities to support all of the printer formats there are, I'm
afraid.
FT
**** End of Text ****